package org.explore.miracle;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MainViewModel extends ViewModel {
    private MutableLiveData<String> username;
    private MutableLiveData<String> password;

    public MainViewModel(){
        username = new MutableLiveData<>();
        password = new MutableLiveData<>();
    }

    public MutableLiveData<String> getUsername(){
        return username;
    }

    public void setUsername(String name){
        username.setValue(name);
    }

    public MutableLiveData<String> getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password.setValue(password);
    }
}
